﻿namespace susupd
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("101-200的素数有：");
            

                int count = 0; // 用来计数素数的个数

                
                for (int num = 101; num <= 200; num++)
                {
                    bool isPrime = true; 

 
                    for (int i = 2; i <= Math.Sqrt(num); i++)
                    {
                        if (num % i == 0)
                        {
                            isPrime = false; 
                            break;
                        }
                    }

                    
                    if (isPrime)
                    {
                        Console.Write(num + " ");
                        count++;

                        if (count%10 == 0)
                        {
                            Console.WriteLine();
                        }
                    }
                }

                Console.WriteLine("共有" + count + " 个素数");
            }
        }
    
}
